package com.ssfGame.puremvc.controller 
{
	
	import com.ssfGame.puremvc.view.application.ApplicationMediator;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * 
	 * @author Administrator
	 */
	public class ViewPrepCommand extends SimpleCommand
	{
		/**
		 * 预注册view
		 */
		public function ViewPrepCommand()
		{
			super();
		}
		override public function execute(notification:INotification):void{
			var app:Demo_PVP_builder_MVC=notification.getBody() as Demo_PVP_builder_MVC
			facade.registerMediator(new ApplicationMediator(ApplicationMediator.NAME,app))
		}
	}
}